package com.mew.common.dc.statis;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mew.common.entity.statis.GoldTotal;
import com.mew.common.dc.mapper.GoldTotalMapper;
import org.springframework.stereotype.Service;

@Service
public class GoldTotalService extends ServiceImpl<GoldTotalMapper, GoldTotal> implements IGoldTotalService {

    /**
     * 更新今日转账金币统计
     */
    public void upTraGold(long gold){
        //GoldTotal goldTotal = GoldTotal.builder().traGold(gold).build().idTime();
        //getBaseMapper().insertOrAddUpdate(goldTotal);
    }


    /**
     * 更新今后台日上分金币统计
     */
    public void upUpGold(long gold){
        GoldTotal goldTotal = GoldTotal.builder().upGold(gold).build().idTime();
        getBaseMapper().insertOrAddUpdate(goldTotal);
    }


}
